<?php

namespace app\model\fuhai;

use app\model\Supplier;
use think\Model;

class Markting extends Model
{
    protected $connection = "fuhai";

    public function detail()
    {
        $account = request()->admin;
        $supplier = app(Supplier::class)->where(['id' => $account['supplier_id']])->value('fuhai_appid');
        return $this->where(['code' => $supplier])->find();
    }
}